﻿using AntdUI;

namespace WorkTool2.Classes.Data
{
    public class MergeData : NotifyProperty
    {
        public MergeData(string filePath)
        {
            Id = Guid.NewGuid().ToString();
            FilePath = filePath;
            _fileName = Path.GetFileName(filePath);
        }

        public string Id { get; set; }

        public string FilePath { get; set; }

        private string _fileName;

        public string FileName
        {
            get => _fileName;
            set { _fileName = value; OnPropertyChanged(); }
        }

        public CellLink[] Action => new CellLink[] {
            new CellButton("delete", "删除", TTypeMini.Error)
        };
    }
}